<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUBuyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //购物信息
        Schema::create('u_buy', function (Blueprint $table) {
            $table->increments('id');
			$table->integer('uid')->unsigned();
			$table->integer('mid')->unsigned();
			$table->enum('status', ['wait', 'rej', 'pay', 'end']);	
            $table->string('ip');
            $table->string('buytime');	
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('u_buy');
    }
}
